package structural.decorator;

/**
 * @ClassName: Decorator
 * @Description: 装饰器类
 * @Author: liu-hao
 * @Date: 2023-04-12 17:57
 * @Version: 1.0
 **/
public abstract class Decorator implements Component {
    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }
}
